(function(){
    let myCharts=echarts.init(document.querySelector('.pie'));
    let option = {
        tooltip:'item',
        color:['#006cff','#60cda0','#ed8884','#ff9f7f','#0096ff','#9fe6b8','#32c5e9','#1d9dff'],
        series: [
          {
            name: '点击分布统计',
            type: 'pie',
            radius: [5, 50],
            // center: ['50%', '50%'],
            roseType: 'radius',
            
            itemStyle: {
              borderRadius: 8
            },
            data: [
              { value: 40, name: '云南' },
              { value: 60, name: '北京' },
              { value: 55, name: '山东' },
              { value: 54, name: '河北' },
              { value: 40, name: '江苏' },
              { value: 54, name: '浙江' },
              { value: 60, name: '四川' },
              { value: 75, name: '湖北' }
            ]
          }
        ]
      };
      myCharts.setOption(option)
      window.addEventListener('resize',function(){
        myCharts.resize();
      })
})()